﻿using d1Common.Interface;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace d1Project.Modules.Common.do4A.Models
{
    public class RolePermission : IRolePermission
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key, StringLength(128)]
        public string Id { get; set; }

        /// <summary>
        /// 角色Id
        /// </summary>
        public string RoleId { get; set; }

        /// <summary>
        /// 权限Id
        /// </summary>
        public string PermissionId { get; set; }

        /// <summary>
        /// 操作权限 (所有操作项按位与的结果) 
        /// </summary>
        public int Operations { get; set; }

    }
}